package cn.dust.design.pattern.creational.builder;

/**
 * @Author: dust
 * @Date: 2019/11/25 16:53
 */
public class HeroActualBuilder extends HeroBuilder{

    private Hero hero=new Hero();

    @Override
    public void buildHeroName(String heroName) {
        hero.setHeroName(heroName);
    }

    @Override
    public void buildHeroQ(String heroQ) {
        hero.setHeroQ(heroQ);
    }

    @Override
    public void buildHeroW(String heroW) {
        hero.setHeroW(heroW);
    }

    @Override
    public void buildHeroE(String heroE) {
        hero.setHeroE(heroE);
    }

    @Override
    public void buildHeroR(String heroR) {
        hero.setHeroR(heroR);
    }

    @Override
    public Hero makeHero() {
        return hero;
    }
}
